package com.work.straighttalk.presenter.i;

import android.net.Uri;

import com.hyphenate.chat.EMMessage;
import com.work.straighttalk.bean.StraightTalkMessage;

/**
 * Created by dllo on 16/3/4.
 */
public interface ChatPI {
    //加载信息数据
    void loadData();

    //发送一条信息
    void sendTextMessage(String content);

    //After recorder works,then this can be called;
    void sendVoiceMessage();

    //
    void destory();

    //播放音频
    void startPlayer(StraightTalkMessage message);


    //控制音频播放进度
    void seekTo(int progress);

    //停止播放音频
    void stopPlayer();

    //暂停播放\
    void pausePlayer();

    //录制音频
    void recordVoice();

    //抛弃正在录制的音频
    void discordVoice();

    //通过uri 发送图片
    void sendPicByUri(Uri uri);
}
